<?php

/* @var $this \yii\web\View */
/* @var $content string */
use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html>
<head>
<?= Html::csrfMetaTags() ?>
<title><?= Html::encode($this->title) ?></title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="MobileOptimized" content="320">
<meta http-equiv="Cache-Control" content="no-cache, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta name="HandheldFriendly" content="true">
<meta name="author" content="johnye">
<meta name="shenma-site-verification" content="f28da5e2e3fb6e2afd372a3eedfda998">
<meta name="baidu-site-verification" content="eafwEzRbnz">
<?php $this->head() ?>
</head>
<body>
<?php $this->beginBody() ?>
<style>
.page-app{ background:#f0f0f0;}
body{background:#f0f0f0;}
</style>
<div id="loading" style="display: block;"><div class="loadingbox"><section class="ffffbox"><div class="loadingpice"></div></section></div></div> 
	<header id="header"><div class="return"></div> 标题 </header>
	<?= $content ?>
 <!--底部-->
<!--底部-->
     <div class="bottom-bar-warp">
        <div class="bottom-bar" id="bottom-bar">
            <div class="bbar-btn tap-click" onclick="dolink('<?=\yii\helpers\Url::toRoute(['index/index'])?>');"  ><i  class="icon icon_home"></i><div class="text" style="margin-top:-8px;">首页</div></div>
            <div class="bbar-btn tap-click" onclick="dolink('<?=\yii\helpers\Url::toRoute(['cart/info'])?>');"  ><i class="icon icon_order"></i><div class="text" style="margin-top:-8px;">购物车</div></div>
            <div class="bbar-btn tap-click" onclick="dolink('');" ><i class="icon icon_user"></i><div class="text" style="margin-top:-8px;">我的订单</div></div>
            <div class="bbar-btn"  onclick="dolink('');"><i class="icon icon_phone" style="margin-top: 8px;"></i></a><a class="text"  style="margin-top:-10px;">个人中心></a></div>
        </div>
    </div>

<script>
    var taction = "index";
	$(function(){
		if( taction  == 'index' ){
			$(".icon_home").next().css('color','#ff6e6e');
			$(".icon_home").css('backgroundPosition','0px -23px');
		}
		if( taction  == 'member' ){
			$(".icon_phone").next().css('color','#ff6e6e');
			$(".icon_phone").css('backgroundPosition','-92px -23px');
		}
		if( taction  == 'order' ){
			$(".icon_user").next().css('color','#ff6e6e');
			$(".icon_user").css('backgroundPosition','-23px -23px');
		}
			if( taction  == 'togethersay' ){
			$(".icon_order").next().css('color','#ff6e6e');
			$(".icon_order").css('backgroundPosition','-69px -23px');
		}
	});
</script>
 <script>
 	$(function(){
 	   $('#loading').hide();
    });

 	function dolink(url) {
        window.location.href = url;
    }
 </script>
  
<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
 